<?xml version="1.0" encoding="UTF-8"?>
<ticket>
  <assigned-user-id type="integer">20241</assigned-user-id>
  <attachments-count type="integer">0</attachments-count>
  <closed type="boolean">false</closed>
  <created-at type="datetime">2009-03-18T17:03:29-05:00</created-at>
  <creator-id type="integer">48348</creator-id>
  <milestone-due-on type="datetime" nil="true"></milestone-due-on>
  <milestone-id type="integer" nil="true"></milestone-id>
  <number type="integer">44</number>
  <permalink>undefined-method-fixtures</permalink>
  <priority type="integer">43</priority>
  <project-id type="integer">15332</project-id>
  <raw-data type="binary" nil="true" encoding="base64"></raw-data>
  <state>new</state>
  <tag nil="true"></tag>
  <title>undefined method `fixtures'</title>
  <updated-at type="datetime">2009-04-05T07:52:28-05:00</updated-at>
  <user-id type="integer">48348</user-id>
  <user-name>Jeff Schwab</user-name>
  <creator-name>Jeff Schwab</creator-name>
  <assigned-user-name>mrflip</assigned-user-name>
  <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/44</url>
  <original-body>The tests installed by restful_authentication encounter undefined-method errors, starting with &quot;undefined method `fixtures'&quot; for the unit tests.  The problem seems to be that the tests derive only from Test::Unit::TestCase, whereas the relevant methods are defined in ActiveRecord::TestCase and ActionController::TestCase for unit and functional tests, respectively.

My current work-around is to change the base class by hand, e.g. to replace

    class UserTest &lt; Test::Unit::TestCase

with

    class UserTest &lt; ActiveRecord::TestCase

This addresses the error, so that the tests at least can run.</original-body>
  <latest-body>The tests installed by restful_authentication encounter undefined-method errors, starting with &quot;undefined method `fixtures'&quot; for the unit tests.  The problem seems to be that the tests derive only from Test::Unit::TestCase, whereas the relevant methods are defined in ActiveRecord::TestCase and ActionController::TestCase for unit and functional tests, respectively.

My current work-around is to change the base class by hand, e.g. to replace

    class UserTest &lt; Test::Unit::TestCase

with

    class UserTest &lt; ActiveRecord::TestCase

This addresses the error, so that the tests at least can run.</latest-body>
  <original-body-html>&lt;div&gt;&lt;p&gt;The tests installed by restful_authentication encounter
undefined-method errors, starting with &quot;undefined method
&lt;code&gt;fixtures'&quot; for the unit tests. The problem seems to be that
the tests derive only from Test::Unit::TestCase, whereas the
relevant methods are defined in ActiveRecord::TestCase and
ActionController::TestCase for unit and functional tests,
respectively.&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;My current work-around is to change the base class by hand, e.g.
to replace&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;class UserTest &amp;lt; Test::Unit::TestCase
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;with&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;class UserTest &amp;lt; ActiveRecord::TestCase
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;This addresses the error, so that the tests at least can
run.&lt;/p&gt;&lt;/div&gt;</original-body-html>
  <versions type="array">
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>The tests installed by restful_authentication encounter undefined-method errors, starting with &quot;undefined method `fixtures'&quot; for the unit tests.  The problem seems to be that the tests derive only from Test::Unit::TestCase, whereas the relevant methods are defined in ActiveRecord::TestCase and ActionController::TestCase for unit and functional tests, respectively.

My current work-around is to change the base class by hand, e.g. to replace

    class UserTest &lt; Test::Unit::TestCase

with

    class UserTest &lt; ActiveRecord::TestCase

This addresses the error, so that the tests at least can run.</body>
      <body-html>&lt;div&gt;&lt;p&gt;The tests installed by restful_authentication encounter
undefined-method errors, starting with &quot;undefined method
&lt;code&gt;fixtures'&quot; for the unit tests. The problem seems to be that
the tests derive only from Test::Unit::TestCase, whereas the
relevant methods are defined in ActiveRecord::TestCase and
ActionController::TestCase for unit and functional tests,
respectively.&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;My current work-around is to change the base class by hand, e.g.
to replace&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;class UserTest &amp;lt; Test::Unit::TestCase
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;with&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;class UserTest &amp;lt; ActiveRecord::TestCase
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;This addresses the error, so that the tests at least can
run.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-03-18T17:03:29-05:00</created-at>
      <creator-id type="integer">48348</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">44</number>
      <permalink>undefined-method-fixtures</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>undefined method `fixtures'</title>
      <updated-at type="datetime">2009-03-18T17:03:32-05:00</updated-at>
      <user-id type="integer">48348</user-id>
      <user-name>Jeff Schwab</user-name>
      <creator-name>Jeff Schwab</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/44</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>You don't know me but...
I'm working on some Rails 2.0-compliant stuff to get the code working with Rails 2.3.2 (which I'm using at work).

I've made a fork of the repo for this. When I'm done I'll make a pull-request.

My plan is to add another command-line option &quot;--two-point-oh&quot; that will switch on the 2.0-style things (eg rm fixtures and ids, and using &quot;test do&quot; instead of &quot;def test_&quot;).

Right now I'm not sure if this option should be &quot;on&quot; or &quot;off&quot; by default.

whatcha think?

Taryn</body>
      <body-html>&lt;div&gt;&lt;p&gt;You don't know me but... I'm working on some Rails 2.0-compliant
stuff to get the code working with Rails 2.3.2 (which I'm using at
work).&lt;/p&gt;
&lt;p&gt;I've made a fork of the repo for this. When I'm done I'll make a
pull-request.&lt;/p&gt;
&lt;p&gt;My plan is to add another command-line option &quot;--two-point-oh&quot;
that will switch on the 2.0-style things (eg rm fixtures and ids,
and using &quot;test do&quot; instead of &quot;def test_&quot;).&lt;/p&gt;
&lt;p&gt;Right now I'm not sure if this option should be &quot;on&quot; or &quot;off&quot; by
default.&lt;/p&gt;
&lt;p&gt;whatcha think?&lt;/p&gt;
&lt;p&gt;Taryn&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-03-30T09:40:07-05:00</created-at>
      <creator-id type="integer">48348</creator-id>
      <diffable-attributes type="yaml">--- 
:title: undefined method `fixtures'
</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">44</number>
      <permalink>undefined-method-fixtures</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>2.0-non-compliant</title>
      <updated-at type="datetime">2009-03-30T09:40:11-05:00</updated-at>
      <user-id type="integer">51760</user-id>
      <user-name>Taryn East</user-name>
      <creator-name>Jeff Schwab</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/44</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Hmmm - just thinking - if you were able to just remove 'fixtures', perhaps there should be no backwards-compatibility at all.
Is there not some sort of &quot;RA Classic&quot; for that sort of thing?

Just curious... it'd make my life much easier...

Cheers,
Taryn</body>
      <body-html>&lt;div&gt;&lt;p&gt;Hmmm - just thinking - if you were able to just remove
'fixtures', perhaps there should be no backwards-compatibility at
all. Is there not some sort of &quot;RA Classic&quot; for that sort of
thing?&lt;/p&gt;
&lt;p&gt;Just curious... it'd make my life much easier...&lt;/p&gt;
&lt;p&gt;Cheers, Taryn&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-03-30T09:56:39-05:00</created-at>
      <creator-id type="integer">48348</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">44</number>
      <permalink>undefined-method-fixtures</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>2.0-non-compliant</title>
      <updated-at type="datetime">2009-03-30T09:56:40-05:00</updated-at>
      <user-id type="integer">51760</user-id>
      <user-name>Taryn East</user-name>
      <creator-name>Jeff Schwab</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/44</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>I see the same problem with 2.3 and 2.0, so I'm not sure what the flag would do.  It's not just 'fixtures'; if you remove that, other errors occur later in the file.</body>
      <body-html>&lt;div&gt;&lt;p&gt;I see the same problem with 2.3 and 2.0, so I'm not sure what
the flag would do. It's not just 'fixtures'; if you remove that,
other errors occur later in the file.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-03-31T18:05:10-05:00</created-at>
      <creator-id type="integer">48348</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">44</number>
      <permalink>undefined-method-fixtures</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>2.0-non-compliant</title>
      <updated-at type="datetime">2009-03-31T18:05:12-05:00</updated-at>
      <user-id type="integer">48348</user-id>
      <user-name>Jeff Schwab</user-name>
      <creator-name>Jeff Schwab</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/44</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>How and why did you change the name of the ticket?  This is not a 2.0-specific issue; in fact, I don't see how it's version-specific at all.  I think you'll have better luck if you change the name back, and open a new ticket.</body>
      <body-html>&lt;div&gt;&lt;p&gt;How and why did you change the name of the ticket? This is not a
2.0-specific issue; in fact, I don't see how it's version-specific
at all. I think you'll have better luck if you change the name
back, and open a new ticket.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-04-01T11:42:31-05:00</created-at>
      <creator-id type="integer">48348</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">44</number>
      <permalink>undefined-method-fixtures</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>2.0-non-compliant</title>
      <updated-at type="datetime">2009-04-01T11:42:35-05:00</updated-at>
      <user-id type="integer">48348</user-id>
      <user-name>Jeff Schwab</user-name>
      <creator-name>Jeff Schwab</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/44</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Restoring a title that matches the error message, so other victims will be able to find this ticket more easily.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Restoring a title that matches the error message, so other
victims will be able to find this ticket more easily.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-04-01T11:43:48-05:00</created-at>
      <creator-id type="integer">48348</creator-id>
      <diffable-attributes type="yaml">--- 
:title: 2.0-non-compliant
</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">44</number>
      <permalink>undefined-method-fixtures</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>undefined method `fixtures'</title>
      <updated-at type="datetime">2009-04-01T11:43:52-05:00</updated-at>
      <user-id type="integer">48348</user-id>
      <user-name>Jeff Schwab</user-name>
      <creator-name>Jeff Schwab</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/44</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>This problem appears to be fixed in
http://github.com/technoweenie/restful-authentication.git/

The version with the problem is still online at:
http://svn.techno-weenie.net/projects/plugins/restful_authentication/</body>
      <body-html>&lt;div&gt;&lt;p&gt;This problem appears to be fixed in &lt;a href=&quot;http://github.com/technoweenie/restful-authentication.git/&quot;&gt;http://github.com/technoweenie/r...&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The version with the problem is still online at: &lt;a href=&quot;http://svn.techno-weenie.net/projects/plugins/restful_authentication/&quot;&gt;
http://svn.techno-weenie.net/pro...&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-04-05T07:52:27-05:00</created-at>
      <creator-id type="integer">48348</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">44</number>
      <permalink>undefined-method-fixtures</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>undefined method `fixtures'</title>
      <updated-at type="datetime">2009-04-05T07:52:28-05:00</updated-at>
      <user-id type="integer">48348</user-id>
      <user-name>Jeff Schwab</user-name>
      <creator-name>Jeff Schwab</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/44</url>
    </version>
  </versions>
</ticket>
